/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import java.security.InvalidKeyException;
/*    */ import java.security.NoSuchAlgorithmException;
/*    */ import javax.crypto.Mac;
/*    */ import javax.crypto.spec.SecretKeySpec;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class gi
/*    */   implements h
/*    */ {
/*    */   private Mac w;
/*    */   private int q;
/*    */   private String g;
/*    */   
/*    */   public gi(String str) {
/* 35 */     this.g = str;
/*    */     try {
/* 37 */       this.w = Mac.getInstance(str);
/* 38 */       this.q = this.w.getMacLength();
/* 39 */     } catch (NoSuchAlgorithmException noSuchAlgorithmException) {
/* 40 */       throw new RuntimeException(noSuchAlgorithmException);
/*    */     } 
/*    */   }
/*    */   
/*    */   public byte[] v(byte[] arrayOfByte) {
/* 45 */     return this.w.doFinal(arrayOfByte);
/*    */   }
/*    */   
/*    */   public byte[] v() {
/* 49 */     return this.w.doFinal();
/*    */   }
/*    */   
/*    */   public int v() {
/* 53 */     return this.q;
/*    */   }
/*    */   
/*    */   public void v(byte[] arrayOfByte) {
/*    */     try {
/* 58 */       this.w.init(new SecretKeySpec(arrayOfByte, this.g));
/* 59 */     } catch (InvalidKeyException invalidKeyException) {
/* 60 */       throw new RuntimeException(invalidKeyException);
/*    */     } 
/*    */   }
/*    */   
/*    */   public void z(byte[] arrayOfByte) {
/*    */     try {
/* 66 */       this.w.update(arrayOfByte);
/* 67 */     } catch (IllegalStateException illegalStateException) {
/* 68 */       throw new RuntimeException(illegalStateException);
/*    */     } 
/*    */   }
/*    */   
/*    */   public void v(byte[] arrayOfByte, int i, int j) {
/*    */     try {
/* 74 */       this.w.update(arrayOfByte, i, j);
/* 75 */     } catch (IllegalStateException illegalStateException) {
/* 76 */       throw new RuntimeException(illegalStateException);
/*    */     } 
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\gi.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */